﻿using System;
using MyFloridaHouse.libSvOpenDistricts.ViewModel;

namespace MyFloridaHouse.libSvOpenDistricts.MapShapes
{
    public delegate void RegionLabelDataChangedEventHandler(object sender, EventArgs e);
    public delegate void RegionLabelConditionsChangedDataEventHandler(object sender, EventArgs e);

    public partial class RegionLabel
    {
        public static event RegionLabelDataChangedEventHandler RegionLabelDataChanged;
        public static event RegionLabelConditionsChangedDataEventHandler RegionLabelConditionsChanged;

        public void RaiseRegionLabelDataChanged()
        {
            if (RegionLabelDataChanged != null) { RegionLabelDataChanged(this, new EventArgs()); }
        }

        public void RaiseRegionLabelConditionsChanged()
        {
            if (RegionLabelConditionsChanged != null) { RegionLabelConditionsChanged(this, new EventArgs()); }
        }
    }
}
